
@extends('layout.default')

@section('layout.breadcrumb')
  <div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">      
    <div class="dataTables_paginate paging_bootstrap">      

    </div>
    <div class="form-group">
      <div class="input-group" style="width:350px;">
          <input type="text" class="form-control" id="acco" name="acco" maxlength="13" placeholder="名称" autocomplete="off" value="">
          <span class="input-group-btn">
            <button class="btn btn-primary" id="btn-sign" type="submit" style="height:34px;">
            <i class="ace-icon fa fa-search"></i> 查询
            </button>
            <a class="btn btn-inverse create-coupon" style="height:34px;">
              <i class="ace-icon fa fa-leaf"></i> 新增
            </a>
          </span>
      </div>
    </div>
  </div>
@stop

@section('layout.content') 

<div class="row">
</div>


<div class="row">
  <div class="col-xs-12">
    <div class="dataTables_paginate paging_bootstrap">      
      
    </div>
  </div>
</div>
@stop

@section('javascript')
<script src="//cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"></script>
<script type="text/javascript">

  $(function() {

    $('.create-coupon').on('click', function() {
      var uri = '{{route("market.coupon.create")}}';
      layer.open({
          type: 2,
          title: '新增优惠券',
          area: ['960px', '620px'],
          shade: 0.8,
          content: uri,
        });      
    });

    $("img.lazy").lazyload({
      placehoder: "/assets/images/placehoder.png",
      effect: "fadeIn"
    });
    
  });

</script>
@stop